<fieldset>
    <legend>{:lang('条件搜索')}</legend>
    <form class="layui-form layui-form-pane form-search" action="{:sysuri()}" onsubmit="return false" method="get" autocomplete="off">

        
     
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">{:lang('产品罐码')}</label>
            <label class="layui-input-inline">
                <input name="sncode" 
                value="{$get.sncode|default=''}" placeholder="{:lang('请输入产品罐码')}" class="layui-input">
            </label>
        </div>
        
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">{:lang('产品箱码')}</label>
            <label class="layui-input-inline">
                <input name="boxcode" 
                value="{$get.boxcode|default=''}" placeholder="{:lang('请输入产品箱码')}" class="layui-input">
            </label>
        </div>

        <div class="layui-form-item layui-inline">
            <button type="submit" class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> {:lang('搜 索')}</button>
            
        </div>
    </form>
</fieldset>

<script>
    require(['excel'], function (excel) {
        excel.bind(function (data) {

            // 设置表格内容
            data.forEach(function (item, index) {
                data[index] = [item.id, item.username, item.node, item.geoip, item.geoisp, item.action, item.content, item.create_at];
            });

            // 设置表头内容
            data.unshift(['ID', '{:lang("操作账号")}', '{:lang("操作节点")}', '{:lang("访问地址")}', '{:lang("网络服务商")}', '{:lang("操作行为")}', '{:lang("操作内容")}', '{:lang("创建时间")}']);

            // 应用表格样式
            return this.withStyle(data, {A: 60, B: 80, C: 99, E: 120, G: 120});

        }, '{:lang("操作日志")}' + layui.util.toDateString(Date.now(), '_yyyyMMdd_HHmmss'));
    });
</script>